package com.autism.app;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;

public class SheYingActivity extends AppCompatActivity {
    private TextView textView;
    private ImageView imageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_she_ying);

        imageView = findViewById(R.id.imageView9);
        String url0 = "https://cn.yadingtour.com/images/2019_11/20191107175001.jpg";
        Glide.with(this).load(url0).into(imageView);
        imageView = findViewById(R.id.imageView10);
        String url1 = "https://cn.yadingtour.com/images/2019_11/20191107175002.jpg";
        Glide.with(this).load(url1).into(imageView);
        imageView = findViewById(R.id.imageView11);
        String url2 = "https://cn.yadingtour.com/images/2019_11/20191107175003.jpg";
        Glide.with(this).load(url1).into(imageView);
        imageView = findViewById(R.id.imageView12);
        String url3 = "https://cn.yadingtour.com/images/2019_11/20191107175004.jpg";
        Glide.with(this).load(url1).into(imageView);

//        textView = textView.findViewById(R.id.textView8);
//        textView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                new Thread(new Runnable() {
//                    @Override
//                    public void run() {
//                        Document document = null;
//                        String url = "https://cn.yadingtour.com/product/shoot";
//                        try {
//                            document = Jsoup.connect(url).get();
//                            Elements company = document.select("company");
//                            Elements links = document.select("a[href]");
//                            Elements pngs = document.select("img[src$=.png]");
//                            Element content = document.select("div.content").first();
//                        } catch (IOException exception) {
//                            exception.printStackTrace();
//                        }
//                    }
//                }).start();
//            }
//        });
    }
}